import Vue from 'vue'
import Router from 'vue-router'
import HomeLayout from '@/pages/home/HomeLayout'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '',
      name: 'homeLayout',
      redirect: '/cms'
    },
    {
      path: "/cms",
      name: 'centerManagerSystem',
      component: HomeLayout,
      redirect:'/cms/index',
      children:[
        {
          path:'/cms/index',
          component:resolve=>require(['@/pages/index/Index'],resolve)
        }
      ]
    }
  ]
})
